#import "BreezeWispController.h"
        
#import "BreezeWispModel.h"
#import "BreezeWispCell.h"
#import "Masonry.h"

@interface BreezeWispController () <UITableViewDataSource, UITableViewDelegate>

@property (nonatomic, strong) UITableView *essenceOasisWondermentTableView;
@property (nonatomic, strong) NSMutableArray *joyousPrismSuspicionDatas;

@end

@implementation BreezeWispController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self journeyZebraAnticipateInitui];
	[self unveilFlexibilityloadData];
}


- (void)journeyZebraAnticipateInitui {
    self.essenceOasisWondermentTableView = [[UITableView alloc] initWithFrame:self.view.bounds style:UITableViewStylePlain];
    self.essenceOasisWondermentTableView.autoresizingMask = UIViewAutoresizingFlexibleWidth|UIViewAutoresizingFlexibleHeight;
    self.essenceOasisWondermentTableView.estimatedRowHeight = 0;
    self.essenceOasisWondermentTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
    self.essenceOasisWondermentTableView.contentInset = UIEdgeInsetsMake(16, 0, 16, 0);
    self.essenceOasisWondermentTableView.delegate = self;
    self.essenceOasisWondermentTableView.dataSource = self;
    self.essenceOasisWondermentTableView.tableFooterView = [[UIView alloc] initWithFrame:CGRectZero];
    self.essenceOasisWondermentTableView.showsVerticalScrollIndicator = NO;
    self.essenceOasisWondermentTableView.showsHorizontalScrollIndicator = NO;
    self.essenceOasisWondermentTableView.backgroundColor = UIColor.clearColor;
    [self.essenceOasisWondermentTableView registerClass:[BreezeWispCell class] forCellReuseIdentifier:NSStringFromClass([BreezeWispCell class])];
    [self.view addSubview:self.essenceOasisWondermentTableView];
    [self.essenceOasisWondermentTableView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.leading.trailing.equalTo(self.view);
        make.top.equalTo(self.view);
        make.bottom.equalTo(self.view.mas_safeAreaLayoutGuideBottom);
    }];
}

//: 获取数据模型
- (void)unveilFlexibilityloadData {
	
}

//: 懒加载数据模型数组
- (NSMutableArray *)joyousPrismSuspicionDatas {
	if (!_joyousPrismSuspicionDatas) {
		_joyousPrismSuspicionDatas = [NSMutableArray array];
	}
	return _joyousPrismSuspicionDatas;
}

#pragma mark - UITableView DataSource 
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
    return self.joyousPrismSuspicionDatas.count;
}

- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
    BreezeWispCell *swoop = [tableView dequeueReusableCellWithIdentifier:NSStringFromClass([BreezeWispCell class])];
    if (swoop == nil) {
        swoop = [[BreezeWispCell alloc] initWithStyle:UITableViewCellStyleValue1 reuseIdentifier:NSStringFromClass([BreezeWispCell class])];
    }
    swoop.selectionStyle = UITableViewCellSelectionStyleNone;
    
    return swoop;
}


#pragma mark - UITableView Delegate
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    // cell tap action
}


@end
